home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / metkit / lfnames.h < prev    next >
C/C++ Source or Header  |  1997-06-07  |  1KB  |  37 lines

  1. // listing 1, lfnames.h
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. #define LFN_MAX_PATH 260
  6. #define SFN_MAX_PATH 80
  7. int lfn_api( const char *rootname );
  8. unsigned GetShortPathName( const char *filename,
  9.               const char *shortname, unsigned size );
  10. unsigned GetLongPathName( const char *filename,
  11.               const char *longname, unsigned size );
  12. int lfn_mkdir( const char *path );
  13. int lfn_rmdir( const char *path );
  14. int lfn_chdir( const char *path );
  15. int lfn_unlink( const char *path );
  16. int lfn_rename( const char *oldname, const char *newname );
  17. int lfn_access( const char *path, int amode );
  18. int lfn_open( const char *path, int mode, int smode );
  19. FILE *lfn_fopen( const char *filename, const char *mode );
  20. int lfn_findfirst( const char *path, int attrib, struct lfn_find_t *finfo );
  21. int lfn_findnext( struct lfn_find_t *finfo );
  22. void lfn_findclose( struct lfn_find_t *finfo );
  23.  
  24. struct lfn_find_t
  25. {
  26.     char     attrib;            /* attribute byte for matched file */
  27.     unsigned wr_time;           /* time of last write to file */
  28.     unsigned wr_date;           /* date of last write to file */
  29.     unsigned long size;         /* size of file */
  30.     char     name[LFN_MAX_PATH]; /* asciiz name of matched file */
  31.     int      findhandle;
  32. };
  33.  
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37.